package cn.rkylin.oms.warehouseDocking.dao;

import cn.rkylin.core.IDataBaseFactory;
import cn.rkylin.oms.warehouseDocking.domain.Stockout;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

/**
 * 其它出库单数据访问层具体实现
 * 
 * @author fengwang
 * @created 2017年10月24日
 */
@Repository(value = "iStockoutDAO")
public class StockoutDAOImpl implements IStockoutDAO {

    @Autowired
    protected IDataBaseFactory dao;

    private static final String UpdateByPrimaryKeySelectiveStockout = "updateByPrimaryKeySelectiveStockout";

    @Override
    public int updateByPrimaryKeySelectiveStockout(Stockout stockout) throws Exception {
        int iRtn = dao.update(UpdateByPrimaryKeySelectiveStockout, stockout);
        return iRtn;
    }
}
